package bookshop.domain;

import java.util.ArrayList;
import java.util.List;

public class ShoppingCart extends ValueObject {

	private List<CartItem> items = new ArrayList<CartItem>(); // 购物车条目列表
	private Double cartAmount = Math.abs(0.0); // 购物车商品总价格

	public List<CartItem> getItems() {
		return items;
	}

	public void setItems(List<CartItem> items) {
		this.items = items;
	}

	public Double getCartAmount() {
		return cartAmount;
	}

	public void setCartAmount(Double cartAmount) {
		this.cartAmount = cartAmount;
	}

}
